use std::sync::Arc;
use tempdir::TempDir;
use crate::core::services::job::job_context::{JobContext, Workspace};
use crate::core::step_context::StepContext;

pub struct TestUtil {}

impl TestUtil {
    pub fn get_step_context() -> StepContext {
        let workspace = Workspace::TempDir(TempDir::new("test_step_context").unwrap());
        let job_ctx = Arc::new(JobContext::new(workspace));
        let step_ctx = StepContext::new(job_ctx);

        step_ctx
    }
}